const mongoose=require('mongoose');
const Schema=mongoose.Schema;//模型数据结构
var productSchema=new Schema({
  "productId":{type:String},
  "productName":String,
  "salePrice":Number,
  "checked":String,
  "productNum":Number,
  "productImage":String
});
module.exports=mongoose.model('goods',productSchema,'goods');//模型名字，模型数据结构，访问的表
